<cfset lib = viewState.getValue("lib") />
<cfset libs = viewState.getValue("libs") />
<cfset roles = viewState.getValue("roles") />

<cfoutput>
	<form action="#viewstate.getValue("myself")#processLibForm" method="post">
		<input type="hidden" id="libid" name="libid" value="#lib.getLibID()#">
	<p><b>Bold</b> fields are required. </p>
	<fieldset >
	<legend>Library Information</legend>

		 <label for="name">Name: </label>
			<input type="text" id="name" name="name" tabindex="1" value="#lib.getName()#" title="name"><br>
		 <label>Description: </label><br>
		 <label for="description"></label>
		 	<textarea  id="description" name="description" tabindex="2" title="description" style="width:350px;">#lib.getDescription()#</textarea><br>
		 <label for="parent">Parent Library: </label>
		 	<select id="parent" name="parent" tabindex="3">
				<cfloop query="libs">
					<option value="#libid#">#name#</option>
				</cfloop>
			</select><br>
		 <label for="isPublic">isPublic: </label>
			<input type="checkbox" id="isPublic" name="isPublic" tabindex="4" value="1" <cfif lib.getIsPublic() is 1> checked="true"</cfif>  title="isPublic"><br>
		 
			
		
		<label for="submit"></label>
			<input type="submit" value="Save lib" id="submit" tabindex="5">
	</fieldset>
</form>
</cfoutput> 